/**
  vuex通用存储模块
**/
import {constantRouterMap} from '@/router/index'
export const moduleCommon = {

    state: {
      system:{//系统相关信息
        name:'GPSBD',
        version:'1.0.9',
        company:'LBSSOFT',
        date:'2018',
        lang:'zh_CN'
      },
      langs: [
    		{value: 'zh_CN',label: '简体中文'},
    		{value: 'en',label: 'English'}
    	],
      user:{},//用户信息
      pageSize:10,//单页最大显示条数
    	pageSizes:[10,20, 30, 50, 100],//可选每页显示多少条
      roles:{}//角色hash值{roleKey:name}
    },
    permissions: [],
    routers: constantRouterMap, //本用户所有的路由,包括了固定的路由和下面的addRouters
    addRouters: [], //本用户的角色赋予的新增的动态路由
};
